package com.cn.wanxi.mapper;

import com.cn.wanxi.entity.UserEntity;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface UserMapper {

    List<UserEntity>findAll(UserEntity userEntity);

    UserEntity findByUsernameAndPassword(UserEntity userEntity);

    int edit(UserEntity userEntity);

    UserEntity findByUsernameForEdit(UserEntity userEntity);

    int add(UserEntity userEntity);

    UserEntity findByUsername(String username);

    int getCount(UserEntity userEntity);

    int del(Integer id);

    int editpassword(UserEntity userEntity);

    UserEntity findByUsernameForEditpassword(UserEntity userEntity);

    int editpassword(Integer id);

    UserEntity findById(Integer id);
}
